package com.qyer.lxp.model.confirm.normal;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * Created by jiangping on 16/6/30.
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Confirm implements Serializable{
    private static final long serialVersionUID = 6858028825491307220L;

    /**
     * 力行的订单 cd
     */
    @XmlElement(name = "order-cd")
    private String orderCd;

    /**
     * 分销商的订单号
     */
    @XmlElement(name = "customer-order-refer")
    private String customerOrderRefer;

    /**
     * 每个子订项的状态集合
     */
    @XmlElementWrapper(name = "confirm-items")
    @XmlElement(name = "order-item-status")
    private List<OrderItemStatus> orderItemStatus;

    public String getOrderCd() {
        return orderCd;
    }

    public void setOrderCd(String orderCd) {
        this.orderCd = orderCd;
    }

    public String getCustomerOrderRefer() {
        return customerOrderRefer;
    }

    public void setCustomerOrderRefer(String customerOrderRefer) {
        this.customerOrderRefer = customerOrderRefer;
    }

    public List<OrderItemStatus> getOrderItemStatus() {
        return orderItemStatus;
    }

    public void setOrderItemStatus(List<OrderItemStatus> orderItemStatus) {
        this.orderItemStatus = orderItemStatus;
    }

    @Override
    public String toString() {
        return "Confirm{" +
                "orderCd='" + orderCd + '\'' +
                ", customerOrderRefer='" + customerOrderRefer + '\'' +
                ", orderItemStatus=" + orderItemStatus +
                '}';
    }
}
